//通过vue-router插件实现模板路由配置
import { createRouter, createWebHistory } from 'vue-router'
//引入路由
import { allRouters } from './test.ts'
const router = createRouter({
    history: createWebHistory(),
    routes: allRouters,
    //滚动行为,
    scrollBehavior() {
        return {
            top: 0,
            left: 0
        }
    }
})
export default router